package bb.lanxing.lib.devices.sprint;

import android.os.Parcel;
import android.os.Parcelable;

public class SprintFile implements Parcelable {
    public static final Parcelable.Creator<SprintFile> CREATOR = new Parcelable.Creator<SprintFile>() {
        @Override
        public SprintFile createFromParcel(Parcel parcel) {
            return new SprintFile(parcel);
        }

        @Override
        public SprintFile[] newArray(int i) {
            return new SprintFile[i];
        }
    };
    private String fileName;
    private String path;
    private long size;

    @Override
    public int describeContents() {
        return 0;
    }

    public SprintFile(String str, String str2, long j) {
        this.fileName = str;
        this.path = str2;
        this.size = j;
    }

    protected SprintFile(Parcel parcel) {
        readFromParcel(parcel);
    }

    public SprintFile() {
    }

    public String getFileName() {
        return this.fileName;
    }

    public String getPath() {
        return this.path;
    }

    public long getSize() {
        return this.size;
    }

    public String toString() {
        return "SprintFile{fileName='" + this.fileName + "', path='" + this.path + "', size=" + this.size + '}';
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.fileName);
        parcel.writeString(this.path);
        parcel.writeLong(this.size);
    }

    public void readFromParcel(Parcel parcel) {
        this.fileName = parcel.readString();
        this.path = parcel.readString();
        this.size = parcel.readLong();
    }
}
